<?php
class RequestDto
{
    private $ginseng;//带的请求参数 比如?tailginseng=getAll

    public function __get($_key)
    {
        return $this->$_key;
    }

    public function __construct(array $data) {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->$key = $value;
            }
        }
    }

}